home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / dictionaries-common.postrm < prev    next >
Text File  |  2009-05-15  |  850b  |  31 lines

  1. #! /bin/sh
  2. # postrm script for dictionaries-common
  3.  
  4. set -e
  5.  
  6. # Once wamerican is the only standard dict package and it does not
  7. # depend on dictionaries-common it will provide an own
  8. # /usr/share/dict/words pointing to american wordlist. This was
  9. # diverted if dictionaries-common is used. We need to remove that
  10. # diversion if dictionaries-common is removed
  11. if [ "$1" = "remove" ]; then
  12.     dpkg-divert --package dictionaries-common \
  13.     --rename --remove /usr/share/dict/words
  14. fi
  15.  
  16. #  Make sure /etc/openoffice myspell stuff is removed on purge
  17.  
  18. if [ "$1" = "purge" ]; then
  19.     rm -f /etc/openoffice/dictionary.lst /etc/openoffice/dictionary.lst.old
  20. fi
  21.  
  22. # Automatically added by dh_installdebconf
  23. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  24.     . /usr/share/debconf/confmodule
  25.     db_purge
  26. fi
  27. # End automatically added section
  28.  
  29.  
  30. exit 0
  31.